import request from '@/utils/request'

// 获取帖子列表
export const getPosts = (userId: number | string) => {
  return request.get('/post/list', { params: { userId } })
}

// 点赞/取消点赞
export const likePost = (postId: number | string, userId: number | string) => {
  return request.post('/like', null, { params: { postId, userId } })
}


